package com.trp.model.psr;

import com.trp.model.CIMModel;


public class OverheadCircuit extends PSR {

	private float[] points;

	@Override
	protected void init() {
	    points = new float[]{0,0,0,0};
	    this.mType = CIMModel.Type.OVERHEAD_CIRCUIT;
	}

	public void setPoints(float[] points) {
	    if (points == null || points.length<4) {
	        return;
	    }
	    this.points = points;
	}

	public float[] getPoints() {
		return points;
	}

	public boolean setPoint(int index, float point) {
	    if(index < 0 || index > points.length-1) {
	        return false;
	    }
	    this.points[index] = point;
	    return true;
	}
}
